<template>
  <el-row>
    <el-card>
      <div class="calendar-heatmap-title">文章提交详情</div>
      <calendar-heatmap tooltip-unit="个提交" :end-date="endDate" :values="heatmapData" />
    </el-card>
  </el-row>
</template>

<script>

export default {
  name: 'HeatmapChart',
  props: {
    endDate: {
      type: String,
      required: true
    },
    heatmapData: {
      type: Array,
      required: true
    }
  }
}
</script>

<style scoped>
  .calendar-heatmap-title {
    margin-bottom: 10px;
    padding-bottom: 10px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
    color: #767676;
  }
</style>
